package com.lovo.commom.CscRemote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cscTwo", path = "/user",contextId = "user")
public interface ICscUserRemote {

    @GetMapping("updateMoneyByUserName/{userName}/{money}")
    public String updateMoneyByUserName(@PathVariable("userName") String userName, @PathVariable("money") float money);

    @GetMapping("getDiscount/{userName}")
    public float getDiscount(@PathVariable("userName") String userName);
}
